package com.sleepingcat.flutter_boost_dart.pigeons

import com.sleepingcat.flutter_boost_dart.platform_view.NativeViewFactory
import io.flutter.embedding.engine.plugins.FlutterPlugin

/**
 * @作者 志浩
 * @时间 2025/10/3 13:00
 * @描述 TODO
 */
class PlatformViewPlugin : FlutterPlugin {
    private val TAG = "PlatformViewPlugin"

    override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {
        binding
            .platformViewRegistry
            .registerViewFactory("simple_view", NativeViewFactory(binding))
    }

    override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {

    }
}